import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 666
 * Date: 2023-04-04
 * Time: 15:04
 */
public class test1 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String str = scanner.nextLine();
        int sum = 0;
        int sum1 = number(str);
        int sum2 = numChar(str);
        int sum3 = numberShu(str);
        int sum4 = numberZiFu(str);
        if(sum4>0 && sum3>0 && sum2==20){
            sum=sum1+sum2+sum3+sum4+5;
        } else if (sum4>0 && sum3>0 && sum2==10) {
            sum=sum1+sum2+sum3+sum4+3;
        }else if(sum2>0 && sum3>0){
            sum=sum3+sum2+2;
        }
        if(sum>=90){
            System.out.println("VERY_SECURE");
        }else if(sum>=80){
            System.out.println("SECURE");
        } else if (sum>=70) {
            System.out.println("VERY_STRONG");
        } else if (sum>=60) {
            System.out.println("STRONG");
        } else if (sum>=50) {
            System.out.println("AVERAGE");
        } else if (sum>=25) {
            System.out.println("WEAK");
        } else if (sum>=0) {
            System.out.println("VERY_WEAK");
        }
    }

    public static int number(String str) {
        if (str.length() <= 4) {
            return 5;
        } else if (str.length() >= 8) {
            return 25;

        } else {
            return 10;
        }
    }

    public static int numChar(String str) {
        int num = 0;
        int mun1 = 0;
        for (int i = 0; i < str.length(); i++) {
            if (str.charAt(i) >= 65 && str.charAt(i) <= 90) {
                num++;
            }
            if (str.charAt(i) >= 97 && str.charAt(i) <= 122) {
                mun1++;
            }
        }
        if (mun1 > 0 && num > 0) {
            return 20;
        } else if (num > 0 || mun1 > 0) {
            return 10;
        } else return 0;
    }

    public static int numberShu(String str) {
        int num = 0;
        for (int i = 0; i < str.length(); i++) {
            if (str.charAt(i) - '0' >= 0 && str.charAt(i) - '0' <= 9) {
                num++;
            }

        }
        if (num > 1) {
            return 20;
        } else if (num == 1) {
            return 10;

        } else {
            return 0;
        }
    }

    public static int numberZiFu(String str) {
        int num = 0;
        for (int i = 0; i < str.length(); i++) {
            if (!(str.charAt(i) >= 65 && str.charAt(i) <= 90) && !(str.charAt(i) >= 97 && str.charAt(i) <= 122) && !(str.charAt(i) - '0' >= 0 && str.charAt(i) - '0' <= 9)) {
                num++;
            }
        }
        if (num > 1) {
            return 25;
        } else if (num == 1) {
            return 10;
        } else {
            return 0;
        }
    }


}
